import {request} from "@/utils/request.js";

/**
 * 获取签到奖励模版
 * @returns {Promise<unknown>}
 */
export const getSignAwardModelApi = () => {
    return request({
        url: '/ht-nonrealtime-gameservice/signIn/getSignInAwardModel',
        method: 'POST',
    })
}

/**
 * 用户签到
 * @returns {Promise<unknown>}
 */
export const userSignInAPi = () => {
    return request({
        url: '/ht-nonrealtime-gameservice/signIn/addUserSignIn',
        method: 'POST',
    })
}

/**
 * 获取用户签到信息
 * @returns {Promise<unknown>}
 */
export const getUserSignInInfoApi = () => {
    return request({
        url: '/ht-nonrealtime-gameservice/signIn/getUserSignInList',
        method: 'POST',
    })
}



/**
 * 获取用户每日任务完成情况
 * @returns {Promise<unknown>}
 */
export const getUserDailyTaskInfoApi = () => {
    return request({
        url: '/ht-nonrealtime-gameservice/userOpinion/getUserEverydayTask',
        method: 'POSt',
    })
}

/**
 * 查询用户权益分明细列表
 * @returns {Promise<unknown>}
 */
export const getUserScoreInfoListApi = params => {
    return request({
        url: '/ht-nonrealtime-gameservice/integral/log/userGetIntegral',
        method: 'POST',
        data:params
    })
}

/**
 * 获取用户权益分详细
 * @returns {Promise<unknown>}
 */
export const getUserScoreApi = () => {
    return request({
        url: '/ht-nonrealtime-gameservice/integral/getCurrentMonthUserIntegral',
        method: 'POST'
    })
}